package com.zuihai.app.mvp.ui.holder;

import android.content.Context;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.jess.arms.base.BaseHolder;
import com.zuihai.app.R;

import butterknife.BindView;

/**
 * Created by Zc on 2017/4/25.
 */

public class DynamicItemHolder extends BaseHolder<DynamicItemHolder.DynamicItem> {

    @BindView(R.id.iv_release)
    ImageView ivRelease;

    @BindView(R.id.tv_release)
    TextView tvRelease;

    private Context mContext;


    public DynamicItemHolder(View itemView,Context context) {
        super(itemView);
        mContext=context;

    }

    @Override
    public void setData(DynamicItem data, int position) {

        tvRelease.setText(data.title);
    }

    public static class DynamicItem {
        public String drawable;
        public String title;
        public int id;
        public int leibie;

        public DynamicItem(String drawable, String title,int id,int leibie) {
            this.drawable = drawable;
            this.title = title;
            this.id=id;
            this.leibie=leibie;

        }
    }

}
